package com.twt.model.system.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.twt.common.consts.SqlCondition;
import com.twt.model.base.BaseEntity;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Desciption:
 * @ClassName:SysParams
 * @Author:TwT
 * @Date:2022/6/16 22:21
 * @Version:1.0
 **/
@Data
@TableName("t_sys_params")
public class SysParamsPo extends BaseEntity implements Serializable {
    //参数代码
    @NotBlank(message = "参数代码不能为空")
    @Length(min = 1,max = 60,message = "参数代码长度在1-60之间")
    @TableField(condition = SqlCondition.LIKE,whereStrategy = FieldStrategy.NOT_EMPTY)
    private String paramCode;
    //参数名称
    @NotBlank(message = "参数名称不能为空")
    @Length(min = 1,max = 60,message = "参数名称长度在1-60之间")
    @TableField(condition = SqlCondition.LIKE,whereStrategy = FieldStrategy.NOT_EMPTY)
    private String paramName;
    //参数值
    @NotBlank(message = "参数值不能为空")
    @Length(min = 1,max = 60,message = "参数值长度在1-60之间")
    private String paramValue;
    //是否是内置参数
    private String isSystem;
    //备注
    @Length(min = 1,max = 100,message = "备注长度在1-100之间")
    private String remark;
}
